<template>
  <div class="item-box w-full h-full
  rounded-lg transition shadow
  ease-in-out  hover:scale-105">
    <div class="w-full h-full flex items-center justify-between">
      <div class="w-2 h-full rounded-l-lg" :style="item.bgc2"></div>
      <div class="w-6/12 " :style="{  color: item.color }">
        <span class="font-sans font-bold text-slate-700">{{ item.title }}</span>
        <div class="font-bold text-3xl mt-1.5 ordinal slashed-zero tabular-nums">{{ item.number }}</div>
      </div>
      <div class="w-4/12 h-full flex justify-center items-center">
        <div class="rounded-box flex justify-center items-center" :style="item.bgc3">
          <i :class="['iconfont', item.iconfont]" :style="{ fontSize: '36px', color: item.color }"/>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import '@/assets/font/iconfont.css'
import { defineProps, onMounted, ref, nextTick } from 'vue'

const props = defineProps({
  item: {
    type: Object,
    required: true
  },

})
const currentRef = ref()

onMounted(() => {
})

</script>

<style scoped lang="scss">
.rounded-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}
</style>
